package com.dhl.factory.factorymethod.order;

import com.dhl.factory.factorymethod.pizza.*;

/**
 * @title: BJOrderPizza
 * @Author danghailiang
 * @Date: 2022/7/27 21:08
 * @Version 1.0
 */
public class BJOrderPizza extends OrderPizza {

    @Override
    public Pizza createPizza(String type) {
        Pizza pizza = null;
        if ("北京芝士披萨".equals(type)) {
            pizza = new BJCheessPizza("北京芝士披萨");
        } else if ("北京胡椒披萨".equals(type)) {
            pizza = new BJPepperPizza("北京胡椒披萨");
        }
        return pizza;
    }
}
